<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8">
		<title>广告管理</title>

		<link rel="stylesheet" href="__CSSB__/reset.css">
		<link rel="stylesheet" href="__CSSB__/advadd.css">
		<link rel="stylesheet" href="__CSSB__/advinfo.css" />
		<link rel="stylesheet" href="__CSSB__/apa.css">
		<script type="text/javascript" src="__JSB__/imgformat.js"></script>
		<script type="text/javascript" src="__JSB__/jquery-3.6.0.min.js"></script>

	</head>
	<body>
		<!-- O组头部 -->
		<div class="top">
			{if (session('uNickB'))!=''}
			<div class="top1">
				<img class="top2" src="__IMGB__/mv.jpg">
				<div>O论坛后台管理</div>
			</div>
			{/if}
			<div class="top3">
				<li><a href="{:url('deal/mesdeal',['sid' => 0])}">帖子管理</a></li>
				<li><a href="{:url('deal/userdeal')}">用户管理</a></li>
				<li><a href="{:url('deal/secdeal')}">板块管理</a></li>
				<li><a href="{:url('bindeal/binSecDeal')}">回收站管理</a></li>
				<li><a href="{:url('advdeal/advdeal')}">广告管理</a></li>
				<li><a href="{:url('advdeal/boxdeal')}">轮播图管理</a></li>
				<li><a href="{:url('admin/apa')}">修改密码</a></li>
				<li><a href="{:url('admin/alogout')}">注销</a></li>
				<li><a href="{:url('O_forum/O/forum')}">论坛前台</a></li>
				<li style="color: #FFFFFF;">欢迎您： {:session('uNickB')}</li>
			</div>
		</div>
		
		<!-- O组1903010227内容区域 -->
		<div id="advadd_top">
			<span>首页广告管理:
				<button type="button" id="advadd_a">
					<a href="{:url('advdeal/advadd')}">添加广告</a>
				</button>
			</span>
			<form action="">
				<ul>
					<li>
						<input type="text">
						<button type="submit">搜索</button>

					</li>
				</ul>
			</form>
		</div>

		<!-- O组1903010227内容区域 -->
		<div class="advinfo_content">
			<form action="{:url('advdeal/advinfomodi',['aid'=>input('aid')])}" method="post"
				enctype="multipart/form-data">
				<div id="advinfo_content_mid">

					<div id="advinfo_pic" style="margin-top: 100px;">广告图片:</div>
					{volist name="advInfo" id='advinfo'}
					<div id="advinfo_text">
						<span id="advinfo_source_text">原图片:</span>
						<br>
						<img src="__UPLOAD__/{$advinfo.aimg}" class="source_pic">
						<input type="file" name="aimg" id="advinfo_file" onchange="fileChange(this);"> <br>
						<span class="advinfo_pic">
							推荐图片尺寸为245px宽*169px高
						</span>
					</div>

				</div>

				<div id="advinfo_content_mid">

					<div id="advinfo_title">广告标题:</div>
					<div id="advinfo_text">
						<span id="advinfo_source_text">原标题：{$advinfo.atitle}</span>
						<br>
						<input class="advinfo_input_title" type="text" name="atitle" value="{$advinfo.atitle}">

					</div>
				</div>
				<div id="advinfo_content_mid">
					<div id="advinfo_bz">广告备注:</div>
					<div id="advinfo_text">

						<span id="advinfo_source_text" class="advinfo_source_text">原备注：{$advinfo.acontent}</span>
						<br>
						<textarea id="advinfo_textarea" type="text" name="acontent" value="{$advinfo.acontent}"></textarea>
					</div>
				</div>
				<div id="advinfo_content_mid">
					<div id="advinfo_addr">广告指向地址:</div>
					<div id="advinfo_text">
						<span id="advinfo_source_text">原地址：{$advinfo.apath} </span>
						<br>
						<input class="advinfo_input_title" type="text" name="apath" value="{$advinfo.apath}">
					</div>
				</div>
				{/volist}
				<div id="advinfo_content_mid">
					<button class="addvadd_buttons" type="submit" id="b1">确认修改</button>
				</div>
			</form>
		</div>

	</body>
</html>
